package com.ruoyi.system.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import java.util.Date;



@TableName("sy_traditional_reservation")
@ApiModel("预定-传统预定-预定明细")
@Data
public class SyTraditionalReservation extends AbdulBaseEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("明细编号")
    private String detailNumber;

    @ApiModelProperty("预定人")
    private String bookingPerson;

    @ApiModelProperty("预定电话")
    private String bookingPhone;

    @ApiModelProperty("预定桌台")
    private String bookingDesk;

    @ApiModelProperty("预抵时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sstimatedArrivalTime;

    @ApiModelProperty("自动取消时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date automaticallyCancelTime;

    @ApiModelProperty("状态（1-已取消 2-已开单 3-已预订）")
    private Integer status;

    @ApiModelProperty("预定员工")
    private String bookingStaff;

    @ApiModelProperty("预定订单号")
    private String bookingOrderNumber;

    @ApiModelProperty("桌台分类")
    private String tableClassification;

    @ApiModelProperty("门店id")
    private Long storeId;


    //dto

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;


    @TableField(exist = false)
    @ApiModelProperty("预定状态")
    private String statusDesc;

    @ApiModelProperty("预定备注")
    @TableField(exist = false)
    private String bookingRemark;

    @ApiModelProperty("操作类型 1-修改 2-转台")
    @TableField(exist = false)
    private Integer operationType;
}
